home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / arc / shezs19c.zip / MAXFAIL.BAT < prev    next >
DOS Batch File  |  1996-05-03  |  613b  |  22 lines

  1. ECHO OFF
  2. IF %1.==TEST. GOTO :TEST
  3. ECHO %1 VIRI-SCAN FAILURE PROCESSING %2 >> C:\TEMP\MAXSCAN.LOG
  4. SET GET=Failed
  5. :Sets %GET% to "Failed" if <> 0 to be used during the :TEST phase below.
  6. GOTO :EXIT
  7.  
  8. :TEST
  9. IF %GET%.==Failed. GOTO :FAILED
  10. ECHO The virus scan completed OK!
  11. GOTO :EXIT
  12.  
  13. :FAILED
  14. :If you don't have GET.EXE then the errorlevel is not set to <> 0.
  15. :You can add a call to any program that causes the errorlevel to be <> 0.
  16. IF NOT EXIST C:\MENU\GET.EXE ECHO Virus indicated!!!
  17. IF EXIST C:\MENU\GET.EXE GET C "Virus indicated!!! " /W5
  18. IF EXIST C:\MENU\GET.EXE GET Z "Failed"
  19.  
  20. :EXIT
  21.  
  22.